package com.myfoon.model.helper;

import com.myfoon.model.entity.Event;

import java.io.Serializable;

import java.sql.Timestamp;

import java.util.Comparator;

public class EventCreatedComparator implements Comparator, Serializable {
    public EventCreatedComparator() {
    }

    public int compare(Object o1, Object o2) {        
        return ((Timestamp)o1).compareTo((Timestamp)o2);
        //return ((Event)o1).compareTo((Event)o2);
    }
}
